// 防抖
function debounce(fn,delay){
  let t = null
  return function(){
      if(t!==null){
          clearTimeout(t)
      }
      let context =this
      let args = arguments
      t = setTimeout(function(){
          fn.call(context,args)
      },delay)
  }
}
export default{
  debounce
}